import React from "react";
import Son from "./son";

const div1 = React.createRef();

const sonCom = React.createRef();

class App extends React.PureComponent {
  state = {
    mes: "父组件",
  };
  componentDidMount() {
    console.log(div1, "真实dom节点");
    console.log(sonCom, "com");
  }
  render() {
    return (
      <>
        <div className="App" ref={div1}>
          App-className
        </div>
        <Son ref={sonCom}></Son>
      </>
    );
  }
}

export default App;
